package cn.masterj.springcloud.service;

import cn.masterj.springcloud.CommonResult;
import cn.masterj.springcloud.entity.Storage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author masterJ
 * @create 2020-04-20 17:32
 */
@FeignClient(value = "cloudalibaba-seat-storage")
public interface IStorageService {



    /**
     * 测试库存减一
     * @return
     */
    @GetMapping("/storage/decrease")
    CommonResult<Storage> decrease(@RequestParam("id") Long id);
}
